package com.atguigu.mybatis.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Smexy on 2022/11/9
 *
 *      注意事项:
 *              不要使用基本数据类型(都有默认值)。
 */
@Data //提供toString,getter,setter
@NoArgsConstructor
@AllArgsConstructor
public class Employee
{
    //private int id;
    private Integer id;
    private String lastName;
    private String gender;
    private String email;

    /*public void setLast_name(String n){
        lastName = n;
    }*/

    public static void main(String[] args) {

        Employee employee = new Employee();

        Employee employee1 = new Employee(1, "tom", "male", "tom@163.com");

        System.out.println(employee1);



    }
}
